﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Welcome.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BEELab.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server">
    <div id="wrap" class="clearfix">
        <div class="holder">
            <div class="leftblock">
                <h2 class="headline">Sign-In</h2>
                <div class="sign-form">
                    <div class="input-hold">
                        <asp:Label ID="Label1" runat="server" CssClass="sign-label">E-Mail Address</asp:Label>
                        <asp:TextBox runat="server" ID="txtEmail" CssClass="sign-input" />
                        <asp:RequiredFieldValidator ID="rfvtxtEmail" runat="server" ControlToValidate="txtEmail" ForeColor="Red" ErrorMessage="* E-Mail Address is required." Text="*" ValidationGroup="SignInGroup" />
                        <asp:RegularExpressionValidator ID="revtxtEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail" ValidationGroup="SignInGroup" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Text="*" ErrorMessage="Please Enter Valid Email"></asp:RegularExpressionValidator>
                    </div>
                    <div class="input-hold">
                        <asp:Label ID="Label2" runat="server" CssClass="sign-label" AssociatedControlID="txtPassword">Password</asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtPassword" TextMode="Password" />
                        <asp:RequiredFieldValidator ID="rfvPasswordRequired" runat="server" ControlToValidate="txtPassword" ForeColor="Red" ErrorMessage="* Password is required." Text="*" ValidationGroup="SignInGroup" />
                        <asp:RegularExpressionValidator ID="revPassword" runat="server" ControlToValidate="txtPassword" ErrorMessage="* Password should be alphanumeric and at least 6 characters long" Text="*" Display="Dynamic" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9 .-_]{6,100}$" ValidationGroup="SignInGroup" />
                    </div>

                    <div class="input-hold">
                        <a href="PasswordRecovery.aspx" class="forgot">-Password Recovery-</a>
                    </div>

                    <div class="input-hold">
                        <asp:Button ID="btnSignIn" ValidationGroup="SignInGroup" CssClass="sign-submit"  Text="Submit" runat="server" OnClick="btnSignIn_Click" />
                    </div>
                </div>
                <div class="error">

                    <asp:ValidationSummary ID="vsLoginPage" runat="server" ValidationGroup="SignInGroup" />
                    <asp:Label ID="lblFailureText" runat="server" Visible="False">
                        <p>* Wrong credentials</p>
                        <p>Please check your e-mail/password and try again</p>
                    </asp:Label>
                </div>

                <div>
                    <embed
                    width="430" height="242" 
                    src="http://www.youtube.com/v/tYIUWvc37wQ"
                    type="application/x-shockwave-flash"/>
                </div>
            </div>
            
            <div class="rightblock">
                <h2 class="headline">Sign-Up</h2>
                <div class="sign-form">

                    <div class="input-hold">
                        <asp:Label ID="Label4" runat="server" CssClass="sign-label" AssociatedControlID="txtFirstName">First Name</asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtFirstName" />
                        <asp:RequiredFieldValidator ID="rfvtxtFirstName" runat="server" ControlToValidate="txtFirstName" ErrorMessage="* Name, Surname is required." Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revtxtFirstName" runat="server" ControlToValidate="txtFirstName" Text="*" ErrorMessage="* Name, Surname allow only alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label10" runat="server" CssClass="sign-label" AssociatedControlID="txtFirstName">Last Name</asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtLastName" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtFirstName" ErrorMessage="* Name, Surname is required." Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtFirstName" Text="*" ErrorMessage="* Name, Surname allow only alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label5" runat="server" CssClass="sign-label" AssociatedControlID="txtUniversity">University</asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtUniversity" />
                        <asp:RequiredFieldValidator ID="rfvtxtUniversity" runat="server" ControlToValidate="txtUniversity" ErrorMessage="* University is required." Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revtxtUniversity" runat="server" ControlToValidate="txtUniversity" Text="*" ErrorMessage="* University allow only alphabetic." ValidationExpression="^[a-zA-Z ._]+$" ForeColor="Red"></asp:RegularExpressionValidator>
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label6" runat="server" CssClass="sign-label1" AssociatedControlID="txtEmail">E-Mail Address <br /><span>Will be used as username</span></asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtRegEmail" TextMode="Email" AutoPostBack="true" OnTextChanged="txtRegEmail_TextChanged" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRegEmail"
                            CssClass="field-validation-error" ErrorMessage="* E-Mail Address is required." Text="*" ForeColor="Red" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtRegEmail" CssClass="field-validation-error" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="* Email Format {username@domail.com}" Text="*" ForeColor="Red"></asp:RegularExpressionValidator>
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label7" runat="server" CssClass="sign-label1" AssociatedControlID="txtConfirmEmail">E-Mail Address<br /><span>Repeat</span></asp:Label>
                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtConfirmEmail" TextMode="Email" />
                        <asp:RequiredFieldValidator ID="rfvtxtConfirmEmail" runat="server" ControlToValidate="txtConfirmEmail"
                            CssClass="field-validation-error" ErrorMessage="* E-Mail repeat is required." Text="*" ForeColor="Red" />
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtRegEmail" ControlToValidate="txtConfirmEmail"
                            CssClass="field-validation-error" Display="Dynamic" ErrorMessage="* Emails don't match." Text="*" ForeColor="Red" />
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label8" runat="server" CssClass="sign-label" AssociatedControlID="txtPassword">Password</asp:Label>
                        <asp:TextBox CssClass="sign-input" runat="server" ID="txtRegPassword" TextMode="Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtRegPassword"
                            CssClass="field-validation-error" ErrorMessage="* Password is required." Text="*" ForeColor="Red" />
                        <asp:RegularExpressionValidator ID="revtxtPassword" runat="server" ControlToValidate="txtRegPassword" ErrorMessage="* Password should be alphanumeric and at least 6 characters long" Text="*" Display="Dynamic" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9 .-_]{6,100}$"></asp:RegularExpressionValidator>
                    </div>

                    <div class="input-hold">
                        <asp:Label ID="Label9" runat="server" CssClass="sign-label1" AssociatedControlID="txtConfirmPassword">Password<br /><span>Repeat</span></asp:Label>

                        <asp:TextBox runat="server" CssClass="sign-input" ID="txtConfirmPassword" TextMode="Password"></asp:TextBox>

                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtConfirmPassword"
                            CssClass="field-validation-error" Text="*" Display="Dynamic" ErrorMessage="* The confirm password is required." ForeColor="Red" />
                        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtRegPassword" Text="*" ControlToValidate="txtConfirmPassword"
                            CssClass="field-validation-error" Display="Dynamic" ErrorMessage="* Passwords don't match." ForeColor="Red" />
                    </div>

                    <div class="input-hold">
                        <asp:Button ID="btnSignUp" CssClass="sign-submit" Text="Submit" runat="server" OnClick="btnSignUp_Click" />
                    </div>
                </div>
                <div class="error">

                    <asp:ValidationSummary ID="vsSignUp" runat="server" />

                    <asp:Label ID="lblEmailVerification" runat="server" Visible="False">
                        * Email already registered.
                    </asp:Label>
                </div>
            </div>
            <div class="spacer"></div>
            <p align="center">
                Do you have an invitation code for a session?<br/>
                Please click below to join the session
            </p>
            <p align="center"><a href="Join.aspx">-Join a Session-</a></p>
        </div>
    </div>

</asp:Content>
